package com.mgq.design.template;

import java.util.function.Consumer;

/**
 * <b>功能：</b>在线银行<br>
 * <b>Copyright TCSL</b>
 * <li>版本&nbsp;&nbsp;&nbsp;&nbsp;修改日期&nbsp;&nbsp;&nbsp;&nbsp;部　　门&nbsp;&nbsp;&nbsp;&nbsp;作　者&nbsp;&nbsp;&nbsp;&nbsp;变更内容</li><hr>
 * <li>v1.0&nbsp;&nbsp;&nbsp;&nbsp;20220415&nbsp;&nbsp;营业后台&nbsp;&nbsp;&nbsp;&nbsp;马广奇&nbsp;&nbsp;&nbsp;&nbsp;创建类</li>
 * <br><br>
 *
 * @author 马广奇
 * @version 2022-04-15 14:57
 */
public abstract class OnlineBank {
    public void processCustomer(int id) {
        //根据id获取用户信息.
        //Customer c= Database.getOne(id)；
        makeCustomerHappy(new Customer());
    }


    /**
     * 让客户高兴的方法(不同银行有不同的实现,交给子类去实现)
     */
    abstract void makeCustomerHappy(Customer customer);
}
